.class Lcom/htc/android/footprints/activity/PostcardActivity$6;
.super Ljava/lang/Object;
.source "PostcardActivity.java"

# interfaces
.implements Lcom/htc/android/footprints/utils/TitleGenerator$SearchListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/htc/android/footprints/activity/PostcardActivity;->geocoderTitle(Landroid/location/Location;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/activity/PostcardActivity;

.field final synthetic val$mf:Ljava/text/DecimalFormat;

.field final synthetic val$setting:Lcom/htc/android/footprints/utils/SettingInfo;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/activity/PostcardActivity;Ljava/text/DecimalFormat;Lcom/htc/android/footprints/utils/SettingInfo;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 969
    iput-object p1, p0, Lcom/htc/android/footprints/activity/PostcardActivity$6;->this$0:Lcom/htc/android/footprints/activity/PostcardActivity;

    iput-object p2, p0, Lcom/htc/android/footprints/activity/PostcardActivity$6;->val$mf:Ljava/text/DecimalFormat;

    iput-object p3, p0, Lcom/htc/android/footprints/activity/PostcardActivity$6;->val$setting:Lcom/htc/android/footprints/utils/SettingInfo;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onResult(ZLjava/lang/String;Ljava/lang/String;Landroid/location/Address;Z)V
    .locals 9
    .parameter "result"
    .parameter "title"
    .parameter "address"
    .parameter "addressInfo"
    .parameter "fixedByGPS"

    .prologue
    const-string v8, "PostcardActivity"

    .line 972
    iget-object v3, p0, Lcom/htc/android/footprints/activity/PostcardActivity$6;->this$0:Lcom/htc/android/footprints/activity/PostcardActivity;

    #getter for: Lcom/htc/android/footprints/activity/PostcardActivity;->mHandler:Landroid/os/Handler;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/PostcardActivity;->access$300(Lcom/htc/android/footprints/activity/PostcardActivity;)Landroid/os/Handler;

    move-result-object v3

    const/16 v4, 0x37

    invoke-virtual {v3, v4}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 975
    if-eqz p1, :cond_0

    if-nez p2, :cond_1

    .line 1002
    :cond_0
    :goto_0
    return-void

    .line 979
    :cond_1
    iget-object v3, p0, Lcom/htc/android/footprints/activity/PostcardActivity$6;->this$0:Lcom/htc/android/footprints/activity/PostcardActivity;

    invoke-static {v3}, Lcom/htc/android/footprints/utils/SettingInfo;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/utils/SettingInfo;

    move-result-object v3

    invoke-virtual {v3}, Lcom/htc/android/footprints/utils/SettingInfo;->getCurrentSerialNumber()I

    move-result v1

    .line 980
    .local v1, sn:I
    iget-object v3, p0, Lcom/htc/android/footprints/activity/PostcardActivity$6;->this$0:Lcom/htc/android/footprints/activity/PostcardActivity;

    #getter for: Lcom/htc/android/footprints/activity/PostcardActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/PostcardActivity;->access$200(Lcom/htc/android/footprints/activity/PostcardActivity;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v3

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget-object v5, p0, Lcom/htc/android/footprints/activity/PostcardActivity$6;->val$mf:Ljava/text/DecimalFormat;

    int-to-long v6, v1

    invoke-virtual {v5, v6, v7}, Ljava/text/DecimalFormat;->format(J)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    iput-object v4, v3, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    .line 983
    if-eqz p5, :cond_4

    iget-object v3, p0, Lcom/htc/android/footprints/activity/PostcardActivity$6;->val$setting:Lcom/htc/android/footprints/utils/SettingInfo;

    iget-boolean v3, v3, Lcom/htc/android/footprints/utils/SettingInfo;->retrieveAddress:Z

    if-eqz v3, :cond_4

    .line 984
    const-string v3, "PostcardActivity"

    const-string v3, "onResult. fixedByGPS"

    invoke-static {v8, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 987
    iget-object v3, p0, Lcom/htc/android/footprints/activity/PostcardActivity$6;->this$0:Lcom/htc/android/footprints/activity/PostcardActivity;

    #getter for: Lcom/htc/android/footprints/activity/PostcardActivity;->mHandler:Landroid/os/Handler;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/PostcardActivity;->access$300(Lcom/htc/android/footprints/activity/PostcardActivity;)Landroid/os/Handler;

    move-result-object v3

    const/16 v4, 0x38

    invoke-virtual {v3, v4}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 988
    iget-object v3, p0, Lcom/htc/android/footprints/activity/PostcardActivity$6;->this$0:Lcom/htc/android/footprints/activity/PostcardActivity;

    #getter for: Lcom/htc/android/footprints/activity/PostcardActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/PostcardActivity;->access$200(Lcom/htc/android/footprints/activity/PostcardActivity;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v3

    iput-object p3, v3, Lcom/htc/android/footprints/vo/Footprint;->mAddr:Ljava/lang/String;

    .line 989
    invoke-virtual {p4}, Landroid/location/Address;->getPhone()Ljava/lang/String;

    move-result-object v0

    .line 990
    .local v0, phone:Ljava/lang/String;
    if-eqz v0, :cond_2

    .line 991
    iget-object v3, p0, Lcom/htc/android/footprints/activity/PostcardActivity$6;->this$0:Lcom/htc/android/footprints/activity/PostcardActivity;

    #getter for: Lcom/htc/android/footprints/activity/PostcardActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/PostcardActivity;->access$200(Lcom/htc/android/footprints/activity/PostcardActivity;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v3

    iput-object v0, v3, Lcom/htc/android/footprints/vo/Footprint;->mTel:Ljava/lang/String;

    .line 994
    :cond_2
    invoke-virtual {p4}, Landroid/location/Address;->getUrl()Ljava/lang/String;

    move-result-object v2

    .line 995
    .local v2, url:Ljava/lang/String;
    if-eqz v2, :cond_3

    .line 996
    iget-object v3, p0, Lcom/htc/android/footprints/activity/PostcardActivity$6;->this$0:Lcom/htc/android/footprints/activity/PostcardActivity;

    #getter for: Lcom/htc/android/footprints/activity/PostcardActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/PostcardActivity;->access$200(Lcom/htc/android/footprints/activity/PostcardActivity;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v3

    iput-object v2, v3, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    .line 1001
    .end local v0           #phone:Ljava/lang/String;
    .end local v2           #url:Ljava/lang/String;
    :cond_3
    :goto_1
    iget-object v3, p0, Lcom/htc/android/footprints/activity/PostcardActivity$6;->this$0:Lcom/htc/android/footprints/activity/PostcardActivity;

    #getter for: Lcom/htc/android/footprints/activity/PostcardActivity;->mHandler:Landroid/os/Handler;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/PostcardActivity;->access$300(Lcom/htc/android/footprints/activity/PostcardActivity;)Landroid/os/Handler;

    move-result-object v3

    const/16 v4, 0x33

    invoke-virtual {v3, v4}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto :goto_0

    .line 999
    :cond_4
    const-string v3, "PostcardActivity"

    const-string v3, "onResult. NOT fixedByGPS"

    invoke-static {v8, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_1
.end method
